package com.cloudfun.campusshare.common.model.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import java.time.LocalDateTime;

/**
 * Created by Huqin on 2020/6/9
 */
@Data
@ApiModel("活动修改DTO")
public class PromotionModifyDTO {

    @ApiModelProperty("id")
    @NotEmpty(message = "id不能为空")
    private String id;

    @ApiModelProperty("开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private LocalDateTime startTime;

    @ApiModelProperty("结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private LocalDateTime endTime;
}
